package com.mercury.coffee.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;
import java.util.List;

/**
 * @author 童
 * @createTime 2021/11/7 19:17
 * @projectName coffee-parent
 * @className CoffeeInfoVo.java
 * @description coffee 简单信息+标签信息
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="coffee + coffee标签 信息类", description="")
public class CoffeeInfoVo {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "咖啡id")
    @TableId(value = "coffee_id", type = IdType.AUTO)
    private Integer coffeeId;

    @ApiModelProperty(value = "咖啡名字")
    private String coffeeName;

    @ApiModelProperty(value = "咖啡介绍")
    private String coffeeIntroduce;

    @ApiModelProperty(value = "咖啡简介")
    private String coffeeBrief;

    @ApiModelProperty(value = "咖啡封面图片")
    private String coffeeImg;

    @ApiModelProperty(value = "逻辑删除 0未删除  1删除")
    private Boolean deleted;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "咖啡的标签数组")
    private String coffeeTypes;

    @ApiModelProperty(value = "咖啡星级")
    private int coffeeStar;
}
